home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / GameKit / Headers / gamekit / GameInfo.h < prev    next >
Text File  |  1995-06-12  |  2KB  |  54 lines

  1. // GameInfo.h -- This object allows you to set global parameters that
  2. //         affect the GameKit in various ways.
  3.  
  4. #import <appkit/appkit.h>
  5.  
  6. @interface GameInfo:Object <NXTransport>
  7. {
  8.     int numSounds, numSoundTypes, numSoundStreams;
  9.     int maxHighScores, numHighScoreTables, *maxHighScoresPerPlayer;
  10.     int numOneUps;
  11.     id  slotType;
  12.     id  encryptedPassword;
  13. }
  14.  
  15. - init;                    // inits with GameKit defaults
  16. - free;
  17.  
  18. - dumpToLog:aLogFile;    // used by server when logging
  19.  
  20. // The following methods access stored info.
  21. - slotType;                    // For the high score system
  22. - (int)maxHighScores;        // for the high score system
  23. - (int)numHighScoreTables;    // for the high score system
  24. - encryptedPassword;        // For network high score table access
  25. - (int)numSounds;            // for the sound system
  26. - (int)numSoundTypes;        // for the sound system
  27. - (int)numSoundStreams;        // for the sound system
  28. - (int)numOneUps;            // how many "men" you start with
  29. - (int)maxScoresPerPlayerTable:(int)theTable net:(BOOL)which;
  30.     // max # of highscores allowed for a player in a given table (theTable)
  31.     // and specify via "which" if net or local server. (0 == no limit)
  32.  
  33. // The following methods change stored info.  All return self.
  34. - setMaxScoresPerPlayerTable:(int)theTable net:(BOOL)which to:(int)val;
  35.     // sets values; like -maxScoresPerPlayerTable:net: above
  36. - setnumSoundTypes:(int)anInt;
  37. - setnumSoundStreams:(int)anInt;
  38. - setnumSounds:(int)anInt;
  39. - setnumHighScoreTables:(int)anInt;
  40. - setMaxHighScores:(int)anInt;
  41. - setSlotType:(const char *)aString;
  42. - setEncryptedPassword:(const char *)aString;
  43. - setNumOneUps:(int)oneUps;
  44.  
  45. // for archiving to/from a file
  46. - read:(NXTypedStream *)stream;
  47. - write:(NXTypedStream *)stream;
  48.  
  49. // Interface Builder support
  50. - (const char *)getInspectorClassName;
  51. - (NXImage *)getIBImage;
  52.  
  53. @end        
  54.